<?php
class RpcFace extends FaceBase {
	// public function __construct() {
	// 	parent::__construct();
	// }

	public function __call($pevent, array $args) {
		try {
			$service = new Yar_Server(n_rpc($pevent));
			$service->handle();
		} catch (Exception $e) {
			echo $e->getMessage();
			n_logSave('callerror.log', var_export($e->getMessage(), true));
		}
	}
}